<?php defined('IN_IA') or exit('Access Denied');?><?php (!empty($this) && $this instanceof WeModuleSite || 1) ? (include $this->template('common/header', TEMPLATE_INCLUDEPATH)) : (include template('common/header', TEMPLATE_INCLUDEPATH));?>
<?php (!empty($this) && $this instanceof WeModuleSite || 1) ? (include $this->template('nav', TEMPLATE_INCLUDEPATH)) : (include template('nav', TEMPLATE_INCLUDEPATH));?>
<div class="main panel panel-default" id="table-list">
	<div class="sub-title panel-heading">中奖名单</div>
	<div class="panel-body">
	<form action="" method="post" onsubmit="">
	<div class="sub-content table-responsive">
		<table class="table table-hover">
			<thead class="navbar-inner">
				<tr>
					<th class="row-hover" style="width:5em;">选择</th>
					<th class="row-hover" style="width:10em;">中奖用户</th>
					<th class="row-hover" style="width:5em;">奖项</th>
					<th class="row-hover" style="width:10em;">奖品名称</th>
					<th class="row-hover" style="width:15em;">中奖时间</th>
					<th class="row-hover" style="width:8em;">领奖SN码</th>
					
				</tr>
			</thead>
			<tbody>
				<?php  if(is_array($list)) { foreach($list as $row) { ?>
				<tr>
					<td class="row-first"><input type="checkbox" name="select[]" value="<?php  echo $row['id'];?>" /></td>
					<td class="row-hover"><img src="<?php  echo $row['avatar'];?>" height=40px width=40px /><br/><?php  echo $row['nick_name'];?></td>
					<td class="row-hover"><?php  echo $row['tag_name'];?></td>
					<td class="row-hover"><?php  echo $row['luck_name'];?></td>
					<td style="font-size:12px; color:#666;">
						<?php  echo date('Y-m-d H:i:s', $row['createtime']);?>
					</td>
					<td style="font-size:12px; color:#666;">
						<?php  echo $row['createtime'];?>
					</td>
				</tr>
				<?php  } } ?>
			</tbody>
			<tr>
					<td><input type="checkbox" onclick="var ck = this.checked;$(':checkbox').each(function(){this.checked = ck});"></td>
                    <td colspan="12">
                        <input type="submit" class="btn btn-pramary" name="downall" value="打印中奖名单" />
                        <input type="hidden" name="award_id" value="<?php  echo $award_id;?>">
						<input type="hidden" name="token" value="<?php  echo $_W['token'];?>">
                    </td>
				</tr>
		</table>
		
	</div>
	</form>
	</div>
	<?php  echo $pager;?>
</div>
<?php (!empty($this) && $this instanceof WeModuleSite || 1) ? (include $this->template('common/footer', TEMPLATE_INCLUDEPATH)) : (include template('common/footer', TEMPLATE_INCLUDEPATH));?>
